package com.bwie.bargain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.bargain.dao.BargainDownDao;
import com.bwie.bargain.entity.BargainDownEntity;
import com.bwie.bargain.service.BargainDownService;


@Service("bargainDownService")
public class BargainDownServiceImpl extends ServiceImpl<BargainDownDao, BargainDownEntity> implements BargainDownService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BargainDownEntity> page = this.page(
                new Query<BargainDownEntity>().getPage(params),
                new QueryWrapper<BargainDownEntity>()
        );

        return new PageUtils(page);
    }

}